Skip to content

Instantly share code, notes, and snippets.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@xdenb43
xdenb43 / MikroTik NetBird installation.md
Last active April 22, 2026 10:10
MikroTik NetBird installation
@Velocet
Velocet / Unlock-PowerCfg.ps1
Last active April 22, 2026 10:08
Unlock/Unhide all Power Plan Settings/Options on Windows 10/11
#Requires -RunAsAdministrator
# Unlock-PowerCfg - v22.05.11
# Disable "Connected Standby"
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Power' -Name 'CSEnabled' -Value 0 -Force
# Get Power Settings entries and add/set 'Attributes' to 2 to unhide
$PowerCfg = (Get-ChildItem 'HKLM:\SYSTEM\CurrentControlSet\Control\Power\PowerSettings' -Recurse).Name -notmatch '\bDefaultPowerSchemeValues|(\\[0-9]|\b255)$'
foreach ($item in $PowerCfg) { Set-ItemProperty -Path $item.Replace('HKEY_LOCAL_MACHINE','HKLM:') -Name 'Attributes' -Value 2 -Force }
@dguerri
dguerri / gist:6668397
Created September 23, 2013 09:43
Simple LibVirt//KVM backup with memory dump.
#!/bin/bash
#
# VirSH Simple Backup (davide.guerri@gmail.com)
#
# Version 1.0.1 - 20130301 (1362127750)
#
VIRSH="/usr/bin/virsh"
QEMU_IMG="/usr/bin/qemu-img"
backup_dir="/backups"
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active April 22, 2026 10:01
Conventional Commits Cheatsheet
@zamabuvaraeu
zamabuvaraeu / RingBuffer.bas
Created April 21, 2026 11:17
Пример кольцевого буфера
#include once "windows.bi"
Private Function FindFreeAddress( _
ByVal dwSize As UInteger _
)As LPVOID
Dim lpBaseAddress As LPVOID = VirtualAlloc( _
NULL, _
dwSize, _
MEM_RESERVE, _